After the server is powered off, a problem occurs in the hard disk block in the System Log-Linux Enterprise Application-Linux server application information. See the following for details. Jul 10 15:53:06 Anime kernel: ata2.01: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
Jul 10 15:53:06 Anime kernel: ata2.01: tag 0 cmd 0xb0 Emask 0x1 stat 0x51 err 0x4 (device error)
Jul 10 15:53:06 Anime kernel: ata2:
, even use X450JF motherboard notebook has this problem. Determine if you are having the same problem as me depending on the operating system log: Win8 and win8.1 logs ("My Computer" right-admin-Event Viewer-windows logs-system-right Toolbar "filter Current Log" event level select "Warning") performance as: "ID 153 event "(in the warning), that is," on disk 0, logical address 0x ... Retry io operation ", the logical address has been changed. Linux logs ("Dmesg|grep ATA" can be run at the term
Linux server downtime Case 2: linux case
An email alert showed that a Linux server in an overseas factory could not be connected, and the DPA (Database Performance Analyzer) system also found a problem. ping the server to find that the Network was disconnected and the local system administrator could not be contacted, after email consultation, the system administrator also found that there was a problem and restarted directly. Afterwards, the system administrator checked and found that the follo
mirror is mirror.lupaworld.com.
3, the operation of Automatic Updates, the system to upgrade. It takes about 30 minutes. The manual DNS server is 218.6.200.139 61.139.2.69.
4, configure a fixed IP address and login window, easy to remote access.
5, install VSFTPD and Openssh-server package.
6, install build-essential software package.
7, install VMware Server 2.0.0, directly to the company's website download, free.
8, the production of USB installation disk, so you can remove the optical
Got "READ fpdma QUEUED" errors from "DMESG" output on your Linux machine?Ata2.00:status: {DRDY ERR}Ata2.00:error: {UNC}ata2.00:failed Command:read FPDMA QUEUEDAta2.00:cmd 60/28:70:28:19:89/00:00:6c:01:00/40 tag Ncq 20480 inRes 41/40:00:00:00:00/00:00:00:00:00/00 emask 0x9 (media error)This probably mean your controller driver issue. Some controllers has known bugs with certain kernels and drivers.You can resolve this by disabling NCQ (Native Command Q
then use the FD value as the index to find the corresponding structure, the structure is the following ANFD structure (omitted on the Windows system variables). This method can be indexed in O (1) complexity, and the question is how much space it occupies. If we open 1 million fd at the same time, the space occupied is 10^6*sizeof (ANFD), about 12M, this is completely acceptable.
The meaning of the fields in the struct is gradually mentioned later in the introduction of the Libev process.
Disable the right mouse button menu bar
$("body").bind("contextmenu", function(event) { return false; });
Disable shortcut keys
Select AllCopyput it in your notes .$("Body"). Bind ("KeyDown", function (e) {E=window.event| | EMask F5 Refresh KeyIfevent.keycode==(e.keycode) {=0;You need to set the KeyCode to false under IEReturnFalse }Masking ALT + arrow key ←Shielding ALT + arrow keys →if ((Event.altkey) ((event.keycode==37) | | (ev
*/
Unsigned int origflags ;//
Int backend; // epoll, kqueue, poll, select, and port flag
Int activecnt; // The total number of activation events.
Int backend_fd; // For epoll, It is the descriptor returned by epoll_create.
Int * fdchanges; // event queue
Int fdchangemax; // current maximum number of events
Int fdchangecnt; // number of events
ANPENDING * pendings [NUMPRI]; // queue to be processed
Int pendingmax [NUMPRI]; // current maximum number of waiting events
Int pendingcnt [NUMPRI
) do { ev_init ((ev), (cb)); ev_io_set ((ev),(fd),(events)); } while (0)#define ev_io_set(ev,fd_,events_) do { (ev)->fd = (fd_); (ev)->events = (events_) | EV__IOFDSET; } while (0)
To initialize an IO event, you only need to call the ev_io_init () function. The ev parameter indicates the ev_io pointer, cb indicates the callback function that triggers the event, and fd indicates the file descriptor to be monitored, events indicates the monitored event.
3. Registration of IO ev
Contact Us
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.